<template>
    <div>
        <div class="menu_aside">
            <el-menu default-active="2" class="el-menu-vertical-demo" @open="handleOpen" @close="handleClose"
                background-color="#d3d9e2" text-color="#131312" active-text-color="#4644ec" router>

                <el-submenu index="1">
                    <template slot="title">
                        <i class="el-icon-menu"></i>
                        <span slot="title">学生信息管理</span>
                    </template>
                    <el-menu-item index="/home/stuInfoEntry">学生信息录入</el-menu-item>
                    <el-menu-item index="/home/stuInfoSelect">学生信息查询</el-menu-item>
                </el-submenu>

                <el-submenu index="2">
                    <template slot="title">
                        <i class="el-icon-document"></i>
                        <span slot="title">学生成绩管理</span>
                    </template>
                    <el-menu-item index="/home/stuMarkEntry">学生成绩录入</el-menu-item>
                    <el-menu-item index="/home/stuMarkSelect">学生成绩查询</el-menu-item>
                </el-submenu>

                <el-menu-item index="/index/gradeAnalysis">
                    <i class="el-icon-setting"></i>
                    <span slot="title">成绩分析</span>
                </el-menu-item>
            </el-menu>
        </div>
    </div>
</template>

<script>
import { Menu, MenuItem, Submenu } from "element-ui";
export default {
    components: {
        "el-menu": Menu,
        "el-submenu": Submenu,
        "el-menu-item": MenuItem,
    },
    methods: {
        handleOpen(key, keyPath) {
            console.log(key, keyPath);
        },
        handleClose(key, keyPath) {
            console.log(key, keyPath);
        }
    }
}
</script>

<style lang="scss">
div {
    .menu_aside {
        font-size: 50px;
    }
}
</style>